package com.five.community.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityVo {
    private long id;
    private String vname;
    private String title;
    private String place;
    private String organizer;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private Date createDate;
    private boolean state;

    public ActivityVo(String vname, String title, String place, String organizer, Date startDate, Date endDate, Date createDate, boolean state) {
        this.vname = vname;
        this.title = title;
        this.place = place;
        this.organizer = organizer;
        this.startDate = startDate;
        this.endDate = endDate;
        this.createDate = createDate;
        this.state = state;
    }
}
